<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>
	Safe Express 中美专递|中美专递|快递|中美送|电子商务物流解决方案
</title>
<link href="{CSS_PATH}fenglei_css/Member.css" rel="stylesheet" type="text/css" />
<script src="{JS_PATH}fenglei_js/jquery-1.3.2.min.js" type="text/javascript"></script>
</head>
<style>
th{
	font-size:16px;}
td{
	font-size:14px;
	height:15px;
	}
tr{
	border-bottom:1px solid #ccc;
	height:30px;}
a{
	text-decoration:none;
	color:red;}
</style>
<body>
<div class="right_main" style="float:left;">
				<div id="showDate" style="display: none;  Z-INDEX: 2; BACKGROUND: #effaff; FILTER: Alpha(opacity=85); position: absolute; WIDTH: 200px; LINE-HEIGHT: 22px; padding:6px; border: 1px solid #bae1f0; font-size:14px;"></div>

</div>
<form method="post" action="index.php?m=order&c=index&a=sdzf" id="form1">

    <div id="historybox">
        <div id="title">
            <span class="spanleft">关税支付</span>
        </div>
        <div class="divcontrol">
            <select name="leibie" id="ddlItem" style="width:85px;">
	<option value="1">订单编号</option>
	<option value="2">转运单号</option>

</select>
            <input name="tbKey" type="text" id="tbKey" onfocus="if(this.value=='请输入查找的内容'){this.value='';this.style.color='#000000'}" onblur="if(this.value==''){this.value='请输入查找的内容';this.style.color='#9C9C9C'}" style="color: rgb(153, 153, 153)" value="请输入查找的内容" class="input1">
            <span>开始：{form::date('tbStart',format::date($starttime))} 
                结束：{form::date('tbEnd',$end_addtime)}</span>&nbsp;&nbsp;
            <input type="button" name="dosubmit" value="搜索" id="btSearch" class="buttonA" onclick="chgeshi()" style="font-weight:bold;height:20px;width:60px;">
        </div>
        <input type="text" hidden="hidden" name="dosubmit" />
        <div id="divbody">
             <div>
	<table cellspacing="0" cellpadding="4" align="Center" id="gvOrder" style="color:#333333;font-size:Medium;width:750px;border-collapse:collapse;text-align: center;
                font-size: large">
		<tbody><tr style="color:White;background-color:#507CD1;font-weight:bold;">
			<th scope="col">序号</th><th scope="col">订单编号</th><th scope="col">转运单号</th><th scope="col">提交日期</th><th scope="col">订单价格￥</th><th scope="col">税额￥</th><th scope="col">操作</th>
		</tr>
       	{loop $datas $r}
        <tr>
        
        <td>{php echo ++$kaishi}</td>
        <td>{$r[orderid]}</td>
        <td>{$r[zhnumber]}</td>
        <td>{php echo date('Y-n-d',$r['uptime'])}</td>
        <td>{$r[orderprice]}</td>       
        <td>{$r[tariff]}</td>     
       <td><a href="index.php?m=order&c=index&a=zhifu&zhnumber={$r[zhnumber]}" style="color:red; text-decoration:none;">去支付</a></td>
        </tr>
        {/loop}
	</tbody></table>
    {$pages}
</div> 
        </div>
       
</form>


</div>
</body>
<script type="text/javascript">
function chgeshi(){
	var d=new Date;
	var neirong=document.getElementById("tbKey");
	var stime=document.getElementById("tbStart");
	var etime=document.getElementById("tbEnd");
	//alert(typeof(d.getTime(stime)));
	stime=Number(d.getTime(stime));
	etime=Number(d.getTime(etime));
	//alert(d.getTime(stime));
	//alert(d.getTime(etime));
	//alert(typeof(etime.value));
	var pre=/^[0-9||a-z||A-Z]+$/;
	if(!pre.test(neirong.value)){
			alert("你输入的查询内容有误，查询的内容只能是字母和数字");
			return false;	
		}	
	if(stime>etime){
			alert("你查询的起始时间有误！");
			return false;
		}	
	form1.submit();			
}



</script>
</html>

